.. _Export NeurEco Discrete Dynamic model python:
Export NeurEco Discrete Dynamic model python
###############################################
| By default, NeurEco saves Discrete Dynamic models in its binary format .ernn.
| A NeurEco embed license allows to export models to the FMU format. The Functional Mock-up Interface (or FMI) defines a standardized interface to be used in computer simulations to develop complex cyber-physical systems. More details are available at these pages: ``_, and ``_
**build** a Discrete Dynamic **model** (:std:ref:`Build NeurEco Discrete Dynamic model with the Python API`) or **load** an already saved one.
To export the **model** to the FMU format:
.. code-block:: python
model.export_fmu(fmu_path)
exports a NeurEco model to FMU (Functional Mock-up Interface).
:fmu_path: string, required, path where to save the fmu file.
:return: int, export_status: 0 if export is successful, other value if not